import request from '@/utils/request'

//查询设备列表
export function getWswMachineList(data) {
  return request({
    url: '/api/wsw-machine/getWswMachineList',
    method: 'get',
    params: data
  })
}

//查询设备
export function getWswMachineById(data) {
  return request({
    url: '/api/wsw-machine/getWswMachineById',
    method: 'get',
    params: data
  })
}

//删除id为？的设备
export function removeWswMachine(data) {
  return request({
    url: '/api/wsw-machine/removeWswMachine/' + data,
    method: 'delete',
  })
}

//新增主设备
export function addWswMachine(data) {
  return request({
    url: '/api/wsw-machine/addWswMachine/',
    method: 'post',
    data
  })
}

//修改主设备
export function updateWswMachine(data) {
  return request({
    url: '/api/wsw-machine/updateWswMachine/',
    method: 'put',
    data
  })
}

//导出主机器列表的excel
export function exportWswMachineList(data) {
  return request({
    url: '/api/excel/exportWswMachineList',
    method: 'get',
    params: data
  })
}

//打开文件夹接口
export function openLocalMakir(data) {
  return request({
    url: '/api/wsw-machine/openLocalMakir',
    method: 'get',
    params: data
  })
}
